package com.itheima.service;

import com.itheima.POJO.Permission;
import com.itheima.POJO.Role;
import com.itheima.entity.PageResult;
import com.itheima.entity.Result;


import java.util.List;
import java.util.Map;

public interface RoleService {
    PageResult getrole(Map map);

    List<Permission> getpermissions();

    List<Permission> addrole(Integer[] checkitemIds, Role role);

    void deleteRole(Integer id);

    Role findRoleById(Integer id);

    void edit(Integer[] checkitemIds, Role role);
    Result findAllRole();
}
